﻿using System;
using System.Collections.Generic;
using System.Text;

namespace IOFileServer.ZMPhoneticEnglish
{
    /// <summary>
    /// 接口: 单词处理
    /// </summary>
    public interface IWordHandle
    {
        /// <summary>
        /// 检查是否符合单词规则
        /// </summary>
        /// <param name="word">单词</param>
        /// <param name="errorMsg">错误消息</param>
        /// <returns>是否符合单词规则</returns>
        bool Compliance(string word, out string errorMsg);

        /// <summary>
        /// 规范处理单词
        /// </summary>
        /// <param name="word">单词</param>
        /// <returns>处理结果</returns>
        string Standard(string word);
    }
}
